import request from '@/utils/request'

/**
 * 基础信息查询
 *
 * @returns {Promise}
 */
export function getWorkbenchInfoAPI() {
  return request({
    url: '/home/workbench/info',
    method: 'get'
  })
}

/**
 * 临期合同查询
 *
 * @param { page, pageSize } params
 *
 * @returns {Promise}
 */
export function getContractListAPI(params) {
  return request({
    url: '/home/workbench/rentInfo',
    method: 'get',
    params
  })
}

/**
 * 修改密码
 *
 * @param { oldPassword, newPassword } params
 *
 * @returns {Promise}
 */
export function updatePasswordAPI(params) {
  return request({
    url: '/park/profile/updatePwd',
    method: 'put',
    data: params
  })
}
